package org.jimmy.tang.collection.queue;

import java.util.LinkedList;
import java.util.Queue;

/**
 * @author jimmy
 * 
 */
public class TestQueue {

    public static void main(String[] args) {

        Queue<String> queue = new LinkedList<String>();
        queue.offer("Hello");
        queue.offer("world!");
        queue.offer("你好");
        System.out.println(queue.size());
        String str;
        while ((str = queue.poll()) != null) {
            System.out.println(str);

        }
        System.out.println(queue.size());
    }
}
